﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Jim.K3Cloud;

/// <summary>
/// 读取系统参数
/// </summary>
[Sdk("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.LoadSysParameter", "读取系统参数")]
public class K3CloudLoadSysParameterRequest : ISdkRequest<K3CloudLoadSysParameterResponse> ,IK3CloudCustomRequest
{
    /// <summary>
    /// 组织Id
    /// </summary>
    public long OrgId { get; set; }
    /// <summary>
    /// 账簿Id
    /// </summary>
    public long AcctBookId { get; set; }
    /// <summary>
    /// 参数
    /// </summary>
    public string ParameterObjId { get; set; }
    public long AcctpolicyID { get; set; } = 0L;
    public bool BIsRunTime { get; set; } = true;

    public object QueryParams()
    {
        return new
        {
          Data = new {
              OrgId = OrgId,
              AcctBookId = AcctBookId,
              ParameterObjId = ParameterObjId,
              AcctpolicyID = AcctpolicyID,
              BIsRunTime = BIsRunTime
          }
        };
    }

    public void Validate()
    {
    }
}



public class K3CloudLoadSysParameterResponse : SdkResponse { }